package com.gzhryc.shared_device.cdcz.core.protocol.v2;

import com.gzhryc.shared_device.iot.core.IOTMessage;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.nio.charset.Charset;
/**
 * 云端消息
 */
public class V2_CDCZ_IOTCloudMessage extends IOTMessage implements Serializable {

    public V2_CDCZ_IOTCloudMessage() {}

    public V2_CDCZ_IOTCloudMessage(String content) {
        if (StringUtils.isNotBlank(content)) {
            this.bytes = content.getBytes(Charset.forName("UTF-8"));
        }
    }
}
